﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace XMLSchemaExtractor
{
    public partial class TextWindow : Form
    {
        private string[] lines;

        public TextWindow(string[] lines, string window)
        {
            InitializeComponent();
            this.lines = lines;
            AddItems(this.lines);
            this.Text = window;
        }

        private void AddItems(string[] lines)
        {
            txtBox.Text = "";
            txtBox.Lines = lines;
        }

        private void closeWindowBtn_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void TextWindow_ResizeBegin(object sender, EventArgs e)
        {

        }

        private void TextWindow_ResizeEnd(object sender, EventArgs e)
        {
            txtBox.Text = "";
            AddItems(this.lines);
        }
    }
}
